home *** CD-ROM | disk | FTP | other *** search
- Path: speedy.grolier.fr!usenet
- From: orain@club-internet.fr (Emmanuel ORAIN)
- Newsgroups: comp.lang.c++
- Subject: Re: REQUEST FOR HELP- UNUSUAL MEMORY LEAK!!!
- Date: Mon, 26 Feb 1996 22:19:14 GMT
- Organization: ExNihilO
- Message-ID: <4gteje$ne7@Speedy.grolier.fr>
- References: <4em45k$kjc_001@nagf.us-ny.citicorp.com>
- NNTP-Posting-Host: ppp-98-170.neuilly.club-internet.fr
- X-Newsreader: Forte Free Agent 1.0.82
-
- mike.grant@citicorp.com (Mike Grant) wrote:
-
- >I need help with an unusual memory leak in a program
- >which I have developed. It seems to occur upon entry into
- >member functions in a derived string class. The leak is
- >unusual in that the memory lost is always 4096 bytes.
- >I have no dynamically allocated memory of this size.
- >[... deleted stuff]
- >mike.grant@citicorp.com
-
- I wrote a program under OS/2 in order to see dynamically the available
- memory (such programs are very common !!). I had a surprise : whatever
- are the loaded programs, the available memory was always a 4KB
- multiple.
- So, my conclusion is this one : malloc (or new), allocate memory from
- the C(++) library, which allocates memory from the operating system
-